package com.jsy.goods.feign;

import com.jsy.common.vo.Result;
import com.jsy.goods.pojo.Category;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("goods")
@RequestMapping("/category")
public interface CategoryFeign {
    /***
     * 根据ID查询Category数据
     * @param id 主键
     * @return 查询结果
     */
    @GetMapping("/{id}")
    Result<Category> findById(@PathVariable Integer id);

}
